<include file="Public/head" />
<script src="{:get_style_cdnurl()}paimai/yunying/js/city.js" type="text/javascript"></script>
<style type="text/css">
    .branch_company,.man_id {
        display: block;
        text-align: center;
        width: 300px;
        background: #fff url("{:get_style_cdnurl()}paimai/yunying/images/sanjiao.jpg") no-repeat scroll 280px 7px;
        border: 1px solid #d2d2d2;
        color: #303030;
        height:26px;
        line-height:26px;
    }
</style>
</head>
<body>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar" menu='zhgl.cszh' />
    <div class="mianR">
        <h3 class="yonghu"><a href="/CarDealer/user_list"> 车商账号 </a> > 开通车商</h3>
        <div class="carDealer">
            <div class="employee">
                <form id="testForm" >
                    <ul class="clearfix">
                        <li>
                            <span>*用户名</span>
                            <input type="text"  name="user_name" value=""  placeholder="输入用户名"/>
                        </li>

                        <li>
                            <span>*公司联系人</span>
                            <input type="text"  name="contact_person" value=""  placeholder="公司联系人"/>
                        </li>

                        <li>
                            <span>*联系人电话</span>
                            <input type="text"  name="contact_mobile" value=""  placeholder="联系人电话"/>
                        </li>

                    </ul>
                </form>
            </div>
        </div>
        <div class="yongBtn">
            <input type="button" value="确定" class="queding" />
            <input name="重置" type="reset" class="quxiao" onclick="history.go(-1);" value="取消" />
        </div>
    </div>
    <div class="clear"></div>
</div>

<script>
    $(document).ready(function() {
        $(".queding").click(function(){
            var category = 2;
            var post_data = "";
                post_data = $("#testForm").serialize();
                post_data = post_data + "&category=" + category;
            var btn_obj = $(this);
//            btn_obj.val("提交中...").attr("disabled",'disabled');
            $.post("/CarDealer/save_open_dealer",post_data,function(data){
                if(data.code!=200){
                    shibai_alert(data.msg,1500);
//                    btn_obj.val("确定").removeAttr("disabled style");
                    return false;
                }
                btn_alert("添加成功",1500,function(){
                    location.href="/CarDealer/user_list";
                });
            },"json");
        });

        $("body").click(function(event){
            $(".employee ul li .menbox").fadeOut();
            event.stopPropagation();
        })
    });
    function popup(opp){
        $(opp).parent().siblings("input").val($(opp).html());
        $(opp).parent().fadeOut();
    }

</script>
<include file="Public/foot" />